using System;
using System.Collections.Generic;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.Graphics;

namespace HadronData
{
    public class LevelObjectivesContentTypeReader : ContentTypeReader<LevelObjectives>
    {
        protected override LevelObjectives Read(ContentReader p_contentReader,
            LevelObjectives p_levelObjectives)
        {
            LevelObjectives levelObjectives = new LevelObjectives();
            levelObjectives.DestroyAllEnemies = p_contentReader.ReadBoolean();
            levelObjectives.Countdown = p_contentReader.ReadInt32();
            levelObjectives.MinimumCratesDelivered = p_contentReader.ReadInt32();
            levelObjectives.MinimumScientistsRescued = p_contentReader.ReadInt32();
            levelObjectives.MinimumReactorsDestroyed = p_contentReader.ReadInt32();
            return levelObjectives;
        }
    }
}
